
let indexTips;
layui.define(['index', 'form', 'table', 'laypage', 'layedit'], function (exports) {
    var $ = layui.$;
    var table = layui.table;
    var laypage = layui.laypage;
    var form = layui.form;
    var element = layui.element;



    laypage.render(zmnPage.laypageOptions(json));


    //获取hash来切换选项卡，假设当前地址的hash为lay-id对应的值
    var layid = location.hash.replace(/^#target=/, '');
    element.tabChange('ele-div-tab', layid);

    //监听Tab切换，以改变地址hash值
    element.on('tab(ele-div-tab)', function(data){
        location.hash = 'target='+ this.getAttribute('lay-id');
    });

    // let id = "frame-act";
    // element.tabAdd('ele-div-tab', {
    //     title: "新的tab",
    //     content: '<iframe data-frameid="'+id+'" scrolling="auto" frameborder="0" src="../../activity/config/list.action" style="width:100%;height:99%;"></iframe>',
    //     id: id //规定好的id
    // })

    //重新渲染tabs
    element.render('tab', 'ele-div-tab');

    //对外暴露的接口
    exports('zmn_plat_activity_modify', {});
});

